<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./assets/index.css">
    <style></style>

    <script src="./node_modules/vue/dist/vue.global.js"></script>
    <script src="./node_modules/axios/dist/axios.min.js"></script>
    <script src="./node_modules/lodash/lodash.min.js"></script>

</head>

<body>
    <div id="app">
        <div class="container">

            <!-- 上面搜索部分 -->
            <div class="search">
                <div class="title">
                    <p>综合</p>
                    <p>定位</p>
                </div>
                <div class="types">
                    <div v-for="(value, k) in typeList" :key="k" class="type-list">
                        <div v-for="item in value" class="radio" :class="{checked: query.value === item.value}"
                            @click="changeType(k, item.value)">
                            {{item.name}}
                        </div>
                    </div>
                </div>
                <div class="keyword">
                    <div class="input">
                        <input type="text" :value="keyword" @input="changeKeyword" placeholder="请输入你要搜索的英雄名" />
                    </div>
                </div>
            </div>

            <!-- 下面列表展示部分 -->
            <ul class="list">
                <li v-for="hero in  heroListFilter" :key="hero.id_name">
                    <a :href="heroDetail(hero.ename)" target="_blank">
                        <img :src="heroImg(hero.ename)">
                        <span v-html="hero.cname"></span>
                    </a>
                </li>
            </ul>
        </div>
    </div>
    <script src="./js/index.js"></script>
</body>

</html>